<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<%@ taglib prefix="c-rt" uri="http://java.sun.com/jstl/core_rt" %>  <%-- ie버전 확인에 쓰기 위해 씀 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!--<script type="text/javascript" src="script/project.js"></script>-->
<link rel='stylesheet' href='calendar/calendar_ahmax.css' type='text/css' />
<script src="calendar/jquery.mousewheel.min.js"></script>
<script src="calendar/calendar_ahmax.js"></script>
<!--<script type="text/javascript" src="script/project.js"></script>-->
<script type="text/javascript">
//달력 사용
initCal("final_renew_day","Y");
</script>
</head>
<body onload="checkDoaYn()">
<div class="box">
      		<h4 class="white">
      			<span class="align-left">잔여위험평가</span>
      			
      			<span class="align-left red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      			평가를 마치신 후 마감을 하시기 바랍니다.
      			</span>
      			
      			<span class="align-left">
      				<a onclick="openMagam(6)" class="button3"><span>마감</span></a>
      			</span>
      			
	      		<span class="align-right">마감상태(잔여위험평가) :
		      		<c:choose>
		      			<c:when test="${sessionScope.magamSession[6].state =='Y'}">
		      				 마감
		      			</c:when>
		      			<c:otherwise>
		      				 착수
		      			</c:otherwise>
		      		</c:choose>
	      		</span>
      		</h4>
      		
      		
      		<table class="insertTable" style="width: 723px">
	   			<tfoot>
	   				<tr>
	   					<td>
	                     	<div class="align-right">
	                     	<c:choose>
	                       		<c:when test="${sessionScope.magamSession[6].state !='Y'}">
	                       		<!-- 마감 현황이 유무 판별(Y 시 입력 불가) -->
	                       			<a href="#" class="button" onclick="javascript: riskIWrite('mridenty4');return false;"><span>저장</span></a>
	                       		</c:when>
	                       		<c:otherwise>
	                       			<a href="#" class="button1 addMargin" onclick="return false;"><span>저장</span></a>
	                       		</c:otherwise>
	                       	</c:choose>
	                     	
	                     	<a href="#" class="button" onclick="javascript: riskICancleWrite('mridenty4')"><span>닫기</span></a></div>
	                     </td>
	   				</tr>
	   			</tfoot>
	   		</table>
	 <div class="box-container2" style="height: 520px; overflow: auto; overflow-x: hidden;">
		 <form action="riskIAction.do" method="post" name="mridenty4">
			 <input type="hidden" name="mode" value="mridenty4_insert"></input>
		     <input type="hidden" name="risk_id" id="insertNum" value="${requestScope.vo.risk_id }"></input>
			 <input type="hidden" name="pro_id" id="pro_id" value="${sessionScope.lastProId }"></input>
			 <input type="hidden" name="hidden_doa_text" id="hidden_doa_text" value="${requestScope.trevo.doa_text }"></input>
			 <c:choose>
			 	<c:when test="${requestScope.trevo!=null}">
			 		<input type="hidden" name="risk_degree" id="risk_degree" value="${requestScope.trevo.risk_degree }"></input>
			 	</c:when>
			 	<c:otherwise>
			 		<input type="hidden" name="risk_degree" id="risk_degree" value="${requestScope.tplanvo.risk_degree }"></input>
			 	</c:otherwise>
			 </c:choose>
			 
			<%-- 위험식별 시작 --%>
		 	
	   		<table class="mrTable" style="width: 723px;table-layout: fixed;">
	   			<colgroup>
	   				<col width="20px"/>
	   				<col width="20px"/>
	   				<col width="100px"/>
	   				<col width=""/>
	   				<col width="120px"/>
	   				<col width=""/>
	   				<col width=""/>
	   				<col width=""/>
	   				<col width=""/>
	   				<col width=""/>
	   				<col width=""/>
	   				<col width=""/>
	   			</colgroup>
	   			<tbody>
	   				<tr>
	   					<th rowspan="13" class="bRLine">위<br/>험</th>
	   					<th rowspan="4" class="bRLine bBLine">자<br/>산</th>
	   					<th rowspan="2" class="bRLine">자산명</th>
	   					<th rowspan="2" class="bRLine">자산유형</th>
	   					<th rowspan="2" class="bRLine">연관정보</th>
	   					<th rowspan="2" class="bRLine">연관<br/>프로세스</th>
	   					<th colspan="6"  class="bBLine">자산평가결과</th>
	   				</tr>
	   				<tr>
	   					<th class="bRLine">기밀성</th>
	   					<th class="bRLine">무결성</th>
	   					<th class="bRLine">가용성</th>
	   					<th class="bRLine">보안<br/>총합</th>
	   					<th class="bRLine">보안<br/>등급</th>
	   					<th>기밀<br/>등급</th>
	   				</tr>
	   				<tr>
	   					<td>${mraassetvo.raitem_nm }</td>
	   					<td>${mraassetvo.ak_nm2 }</td>
	   					<td class="col-rowspanMid col-alignCenter"><a href="#" class="button" style="margin: 0" onclick="javascript: openMappingCount('${vo.raitem_id}')"><span>정보보기 (${requestScope.mraassetCount })</span></a></td>
	   					<td>(연관프로세스)</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.c_score }</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.i_score }</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.a_score }</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.t_score }</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.ascu_level }</td>
	   					<td class="col-rowspanMid col-alignCenter">${mraassetvo.asc_level }</td>
	   				</tr>
	   				<tr>
	   					<th class="bBLine">보안 요구사항</th>
	   					<td colspan="9">
	   						<textarea class="read_textfiled" name="cia_memo" rows="4" id="cia_memo" readonly="readonly">${vo.cia_memo }</textarea>
	   					</td>
	   				</tr>
	   				<tr>
	   					<th rowspan="4" class="bRLine bBLine">위<br/>협</th>
	   					<th height="20px" class="bBLine">위협명</th>
	   					<td colspan="9">${vo.tk_nm3 }</td>
	   				</tr>
	   				<tr>
	   					<th height="20px" class="bBLine">위협 공격자</th>
	   					<td colspan="9">${mtvo.tl_attack }</td>
	   				</tr>
	   				<tr>
	   					<th height="20px" class="bBLine">위협 동기</th>
	   					<td colspan="9">${mtvo.tl_motive}</td>
	   				</tr>
	   				<tr>
	   					<th height="20px" class="bBLine">위협 결과</th>
	   					<td colspan="9" class="col-alignCenter">
							<span><input type="radio" name="tl_result" id="c" value="1" disabled="disabled"<c:if test="${requestScope.vo.tl_result==1 }">checked='checked'</c:if> /> <label for="c" style="cursor:pointer">기밀성 침해(유출/노출)</label></span>
							<span><input type="radio" name="tl_result" id="i" value="2" disabled="disabled"<c:if test="${requestScope.vo.tl_result==2 }">checked='checked'</c:if> /> <label for="i" style="cursor:pointer">무결성 침해(수정/변조)</label></span>
							<span><input type="radio" name="tl_result" id="a" value="3" disabled="disabled"<c:if test="${requestScope.vo.tl_result==3 }">checked='checked'</c:if> /> <label for="a" style="cursor:pointer">가용성 침해(방해/간섭)</label></span>
	   					</td>
	   				</tr>
	   				<tr>
	   					<th rowspan="4" class="bRLine bBLine">취<br/>약<br/>성</th>
	   					<th height="20px" class="bBLine">취약성명</th>
	   					<td colspan="6">${vo.v_nm }</td>
	   					<th height="20px" colspan="2">항목중요도</th>
	   					<td class="col-alignCenter">${vo.v_status }</td>
	   				</tr>
	   				<%--
	   				<tr>
	   					<th height="20px">취약성 평가항목</th>
	   					<td colspan="9">${vo.vp_item }</td>
	   				</tr>
	   				 --%>
	   				<tr>
	   					<th height="20px" class="bBLine">보안통제항목</th>
	   					<td colspan="9">${vo.ts_nm4 }</td>
	   				</tr>
	   				<tr>
	   					<th height="20px" class="bBLine">취약점상세</th>
	   					<td colspan="9">${vo.v_detail }</td>
	   				</tr>
	   				<tr>
	   					<th height="20px" class="bBLine">취약성점수</th>
	   					<td colspan="3" class="col-alignCenter">${vo.vp_total }</td>
	   					<th colspan="2" class="bBLine">항목평가등급</th>
	   					<td class="col-alignCenter">${vo.vp_kind }</td>
	   					<th colspan="2" class="bBLine">항목평점</th>
	   					<td class="col-alignCenter">${vo.vp_score }</td>
	   				</tr>
	   				<tr>
	   					<th colspan="2" height="20px">위험정의서</th>
	   					<td colspan="9">${vo.risk_nm }</td>
	   				</tr>
	   				<tr>
	   					<td colspan="12" style="border: 0px #fff;"></td>
	   				</tr>
	   			</tbody>
	   		</table>
			<%-- 위험식별 끝 --%>
			
			
	   		 <%-- 위험수준 산정 및 평가 시작 --%>
	   		<table class="mr1Table" style="width: 723px;table-layout: fixed;">
		   		<colgroup>
		   			<col width="20px"/>
	   				<col width="120px"/>
	   				<col/>
	   				<col/>
	   				<col/>
		   		</colgroup>
	   			<tbody>
	   				<tr>
	   					<th rowspan="4" class="bRLine">위<br/>험</th>
	   					<th height="20px" class="bBLine bRLine">사업영향도</th>
	   					<th>연관CIA</th>
	   					<td class="col-alignCenter">
		   					<c:choose>
		   						<c:when test="${requestScope.vo.tl_result==1 }">
		   							기밀성
		   							<input type="hidden" name="sy_cia" id="sy_cia" value="기밀성"></input>
		   						</c:when>
		   						<c:when test="${requestScope.vo.tl_result==2 }">
		   							무결성
		   							<input type="hidden" name="sy_cia" id="sy_cia" value="무결성"></input>
		   						</c:when>
		   						<c:when test="${requestScope.vo.tl_result==3 }">
		   							가용성
		   							<input type="hidden" name="sy_cia" id="sy_cia" value="가용성"></input>
		   						</c:when>
		   						<c:otherwise>
		   							<input type="hidden" name="sy_cia" id="sy_cia"></input>
		   						</c:otherwise>
	   						</c:choose>
	   					</td>
	   					<td class="col-alignCenter">
	   						<c:choose>
		   						<c:when test="${requestScope.vo.tl_result==1 }">
		   							${mraassetvo.c_score }
		   							<input type="hidden" name="sy_score" id="sy_score" value="<fmt:formatNumber value="${mraassetvo.c_score }" pattern="0"/>"></input>
		   						</c:when>
		   						<c:when test="${requestScope.vo.tl_result==2 }">
		   							${mraassetvo.i_score }
		   							<input type="hidden" name="sy_score" id="sy_score" value="<fmt:formatNumber value="${mraassetvo.i_score }" pattern="0"/>"></input>
		   						</c:when>
		   						<c:when test="${requestScope.vo.tl_result==3 }">
		   							${mraassetvo.a_score }
		   							<input type="hidden" name="sy_score" id="sy_score" value="<fmt:formatNumber value="${mraassetvo.a_score }" pattern="0"/>"></input>
		   						</c:when>
		   						<c:when test="${requestScope.vo.tl_result=='0' || requestScope.vo.tl_result==null}">
		   							0
		   							<input type="hidden" name="sy_score" id="sy_score" value="0"></input>
		   						</c:when> 
		   						<c:otherwise>
		   							<input type="hidden" name="sy_score" id="sy_score"></input>
		   						</c:otherwise>
	   						</c:choose>
	   					</td>
	   				</tr>
	   				<tr>
	   					<th class="bBLine">자산 취약성 등급</th>
	   					<td colspan="3" class="col-alignCenter">
	   					<%--
	   					<c:forEach var="mvsclist" items="${requestScope.mvsclist}" varStatus="status">
	   						<span><input type="radio" name="v_score" id="v_score${status.index+1 }" value="${status.index+1 }" disabled="disabled" <c:if test="${requestScope.calvo1.v_score==mvsclist.v_level }">checked='checked'</c:if> /> <label for="v_score${status.index+1 }" style="cursor:pointer">${mvsclist.v_level }(${status.index+1 })</label></span>
	   					</c:forEach>
	   					 --%>
	   					 <c:forEach var="vlList" items="${requestScope.vlList}" varStatus="status">
	   						<span><input type="radio" name="MRSv_score" id="MRSv_score${status.index+1 }" value="<fmt:formatNumber value="${vlList.base_cnt }" pattern="0"/>" disabled="disabled" <c:if test="${requestScope.calvo.v_score==vlList.base_cnt }">checked='checked'</c:if> /> <label for="MRSv_score${status.index+1 }">${vlList.base_lev2 }(<fmt:formatNumber value="${vlList.base_cnt }" pattern="0"/>)</label></span>
	   					</c:forEach>
	   					<%--
	   						<span><input type="radio" name="v_score" id="v_score4" value="4" disabled="disabled" <c:if test="${requestScope.calvo.v_score==4 }">checked='checked'</c:if> /> <label for="v_score4" style="cursor:pointer">매우취약(4)</label></span>
							<span><input type="radio" name="v_score" id="v_score3" value="3" disabled="disabled" <c:if test="${requestScope.calvo.v_score==3 }">checked='checked'</c:if> /> <label for="v_score3" style="cursor:pointer">취약(3)</label></span>
							<span><input type="radio" name="v_score" id="v_score2" value="2" disabled="disabled" <c:if test="${requestScope.calvo.v_score==2 }">checked='checked'</c:if> /> <label for="v_score2" style="cursor:pointer">일부취약(2)</label></span>
							<span><input type="radio" name="v_score" id="v_score1" value="1" disabled="disabled" <c:if test="${requestScope.calvo.v_score==1 }">checked='checked'</c:if> /> <label for="v_score1" style="cursor:pointer">양호(1)</label></span>
						 --%>
	   					</td>
	   				</tr>
	   				<tr>
	   					<th class="bBLine">위험발생가능성</th>
	   					<td colspan="3" class="col-alignCenter">
	   					 <c:forEach var="rbList" items="${requestScope.rbList}" varStatus="status">
	   						<span><input type="radio" name="MRSriskb_poss" id="MRSriskb_poss${status.index+1 }" value="<fmt:formatNumber value="${rbList.base_cnt }" pattern="0"/>" disabled="disabled" <c:if test="${requestScope.calvo.riskb_poss==rbList.base_cnt }">checked='checked'</c:if> /> <label for="MRSriskb_poss${status.index+1 }">${rbList.base_lev2 }(<fmt:formatNumber value="${rbList.base_cnt }" pattern="0"/>)</label></span>
	   					</c:forEach>
	   					<%--
	   						<span><input type="radio" name="riskb_poss" id="riskb_poss1" value="1" <c:if test="${requestScope.calvo.riskb_poss==1 }">checked='checked'</c:if> /> <label for="riskb_poss1" style="cursor:pointer">매우낮음(1)</label></span>
							<span><input type="radio" name="riskb_poss" id="riskb_poss2" value="2" <c:if test="${requestScope.calvo.riskb_poss==2 }">checked='checked'</c:if> /> <label for="riskb_poss2" style="cursor:pointer">낮음(2)</label></span>
							<span><input type="radio" name="riskb_poss" id="riskb_poss3" value="3" <c:if test="${requestScope.calvo.riskb_poss==3 }">checked='checked'</c:if> /> <label for="riskb_poss3" style="cursor:pointer">중간(3)</label></span>
							<span><input type="radio" name="riskb_poss" id="riskb_poss4" value="4" <c:if test="${requestScope.calvo.riskb_poss==4 }">checked='checked'</c:if> /> <label for="riskb_poss4" style="cursor:pointer">높음(4)</label></span>
							<span><input type="radio" name="riskb_poss" id="riskb_poss5" value="5" <c:if test="${requestScope.calvo.riskb_poss==5 }">checked='checked'</c:if> /> <label for="riskb_poss5" style="cursor:pointer">매우높음(5)</label></span>
						 --%>
	   					</td>
	   				</tr>
	   				<tr>
	   					<th  height="22px">위험수준</th>
	   					<td colspan="3" class="col-alignCenter col-rowspanMid">
	   						<c:if test="${calvo.sy_score==null }">0</c:if>${calvo.sy_score } &times; <c:if test="${calvo.v_score==null }">0</c:if>${calvo.v_score } &times; <c:if test="${calvo.riskb_poss==null }">0</c:if>${calvo.riskb_poss } = <c:if test="${calvo.risk_degree==null }">0</c:if>${calvo.risk_degree } (max <c:if test="${requestScope.rvatotal==null }">0</c:if>${requestScope.rvatotal }), <c:if test="${requestScope.chRvatotal==null }">0</c:if>${requestScope.chRvatotal }점 척도 환산점수 <fmt:formatNumber value="${calvo.risk_degree*1.67 }" pattern="0"/> 점
	   					</td>
	   				</tr>
	   				<tr>
	   					<td colspan="5" style="border: 0px #fff;"></td>
	   				</tr>
	   			</tbody>
	   		</table>
	   		<table class="mr2Table" style="width: 723px;table-layout: fixed;">
		   		<colgroup>
		   			<col width="80px"/>
	   				<col width="120px"/>
	   				<col/>
		   		</colgroup>
		   		<tbody>
		   			<tr>
		   				<th rowspan="2" class="bRLine">위험수준평가</th>
		   				<th class="bBLine">위험등급</th>
		   				<td class="col-alignCenter">
		   					<span><input type="radio" name="MRSrisk_degrade" id="MRSrisk_degrade1" value="1" disabled="disabled" <c:if test="${requestScope.calvo.risk_degrade==1 }">checked='checked'</c:if> /> <label for="MRSrisk_degrade1">A등급 (높은 위험)</label></span>
							<span><input type="radio" name="MRSrisk_degrade" id="MRSrisk_degrade2" value="2" disabled="disabled" <c:if test="${requestScope.calvo.risk_degrade==2 }">checked='checked'</c:if> /> <label for="MRSrisk_degrade2">B등급 (중간 위험)</label></span>
							<span><input type="radio" name="MRSrisk_degrade" id="MRSrisk_degrade3" value="3" disabled="disabled" <c:if test="${requestScope.calvo.risk_degrade==3 }">checked='checked'</c:if> /> <label for="MRSrisk_degrade3">C등급 (낮음 위험)</label></span>
		   				</td>
		   			</tr>
		   			<tr>
		   				<th>위험처리긴급도</th>
		   				<td class="col-alignCenter">
		   					<span><input type="radio" name="MRSrisk_imm" id="MRSrisk_imm1" value="1" disabled="disabled" <c:if test="${requestScope.calvo.risk_imm==1 }">checked='checked'</c:if> /> <label for="MRSrisk_imm1">1순위(즉시 처리)</label></span>
							<span><input type="radio" name="MRSrisk_imm" id="MRSrisk_imm2" value="2" disabled="disabled" <c:if test="${requestScope.calvo.risk_imm==2 }">checked='checked'</c:if> /> <label for="MRSrisk_imm2">2순위(6개월 이내 처리)</label></span>
							<span><input type="radio" name="MRSrisk_imm" id="MRSrisk_imm3" value="3" disabled="disabled" <c:if test="${requestScope.calvo.risk_imm==3 }">checked='checked'</c:if> /> <label for="MRSrisk_imm3">3순위(1년 이내 처리)</label></span>
		   				</td>
		   			</tr>
		   			<tr>
	   					<td colspan="3" style="border: 0px #fff;"></td>
	   				</tr>
		   		</tbody>
		   	</table>
		   	<%-- 위험수준 산정 및 평가 끝 --%>
		   	
		   	
		   	<%--위험처리방안선정 시작 --%>
		   	<table class="mr3Table" style="width: 723px;table-layout: fixed;">
		   		<colgroup>
		   			<col width="80px"/>
	   				<col width="120px"/>
	   				<col width="120px"/>
	   				<col/>
		   		</colgroup>
		   		<tbody>
		   			<tr>
		   				<th rowspan="10" class="bRLine">위험처리계획</th>
		   				<th height="20px" class="bBLine">위험처리담당자</th>
		   				<td colspan="2">
		   					${requestScope.tplanvo.risk_people }
		   				</td>
		   			</tr>
		   			<tr>
		   				<th rowspan="2" class="bBLine">위험처리방안</th>
		   				<td colspan="2" class="col-alignCenter">
		   					<span><input type="radio" name="MR3risk_treat1" id="MR3risk_treat11" value="1" disabled="disabled"<c:if test="${requestScope.tplanvo.risk_treat1==1 }">checked='checked'</c:if> /> <label for="MR3risk_treat11" style="cursor:pointer">완화</label></span>
							<span><input type="radio" name="MR3risk_treat1" id="MR3risk_treat12" value="2" disabled="disabled"<c:if test="${requestScope.tplanvo.risk_treat1==2 }">checked='checked'</c:if> /> <label for="MR3risk_treat12" style="cursor:pointer">보유</label></span>
							<span><input type="radio" name="MR3risk_treat1" id="MR3risk_treat13" value="3" disabled="disabled"<c:if test="${requestScope.tplanvo.risk_treat1==3 }">checked='checked'</c:if> /> <label for="MR3risk_treat13" style="cursor:pointer">회피</label></span>
							<span><input type="radio" name="MR3risk_treat1" id="MR3risk_treat14" value="4" disabled="disabled"<c:if test="${requestScope.tplanvo.risk_treat1==4 }">checked='checked'</c:if> /> <label for="MR3risk_treat14" style="cursor:pointer">전가</label></span>
		   				</td>
		   			</tr>
		   			<tr>
		   				<td colspan="2">
		   					<textarea class="read_textfiled" name="MR3risk_treat2" rows="4"  id="MR3risk_treat2" readonly="readonly">${requestScope.tplanvo.risk_treat2 }</textarea>
		   				</td>
		   			</tr>
		   			<tr>
		   				<th rowspan="4" class="bBLine">위험처리 후<br/>위험 수준 및 등급<br/>(예측)</th>
		   				<td>자산 취약성 등급</td>
		   				<td class="col-alignCenter">
						 <c:forEach var="vlList" items="${requestScope.vlList}" varStatus="status">
	   						<span><input type="radio" name="MR3v_score" id="MR3v_score${status.index+1 }" value="<fmt:formatNumber value="${vlList.base_cnt }" pattern="0"/>" disabled="disabled" <c:if test="${requestScope.tplanvo.v_score==vlList.base_cnt }">checked='checked'</c:if> /> <label for="MR3v_score${status.index+1 }">${vlList.base_lev2 }(<fmt:formatNumber value="${vlList.base_cnt }" pattern="0"/>)</label></span>
	   					</c:forEach>
		   				</td>
		   			</tr>
		   			
		   			<tr>
		   				<td>위험발생가능성</td>
		   				<td class="col-alignCenter">
		   				
						 		 <c:forEach var="rbList" items="${requestScope.rbList}" varStatus="status">
			   						<span><input type="radio"  name="MR3riskb_poss" id="MR3riskb_poss${status.index+1 }" value="<fmt:formatNumber value="${rbList.base_cnt }" pattern="0"/>"  disabled="disabled" <c:if test="${requestScope.tplanvo.riskb_poss==rbList.base_cnt }">checked='checked'</c:if> /> <label for="MR3riskb_poss${status.index+1 }" style="cursor:pointer">${rbList.base_lev2 }(<fmt:formatNumber value="${rbList.base_cnt }" pattern="0"/>)</label></span>
			   					</c:forEach>
		   					
		   				</td>
		   			</tr>
		   			<tr>
		   				<td>위험수준</td>
		   				<td class="col-alignCenter">
	   							   
	   						<c:if test="${calvo.sy_score==null }">0</c:if>${calvo.sy_score } &times; 
	   						<c:if test="${tplanvo.v_score==null }">0</c:if>${tplanvo.v_score } &times; 
	   						<c:if test="${tplanvo.riskb_poss==null }">0</c:if>${tplanvo.riskb_poss } = 
	   						<c:if test="${tplanvo.risk_degree==null }">0</c:if>${tplanvo.risk_degree } 
	   						(max <c:if test="${requestScope.rvatotal==null }">0</c:if>${requestScope.rvatotal }), 
	   						<c:if test="${requestScope.chRvatotal==null }">0</c:if>${requestScope.chRvatotal }점 척도 환산점수 
	   						<fmt:formatNumber value="${tplanvo.risk_degree*1.67 }" pattern="0"/> 점
	   						
		   				</td>
		   			</tr>
		   			<tr>
		   				<td>위험등급</td>
		   				<td class="col-alignCenter">
						 		<span><input type="radio" name="MR3risk_degrade" id="MR3risk_degrade1" value="1" disabled="disabled" <c:if test="${requestScope.tplanvo.risk_degrade==1 }">checked='checked'</c:if> /> <label for="MR3risk_degrade1" style="cursor:pointer">A등급 (높은 위험)</label></span>
								<span><input type="radio" name="MR3risk_degrade" id="MR3risk_degrade2" value="2" disabled="disabled" <c:if test="${requestScope.tplanvo.risk_degrade==2 }">checked='checked'</c:if> /> <label for="MR3risk_degrade2" style="cursor:pointer">B등급 (중간 위험)</label></span>
								<span><input type="radio" name="MR3risk_degrade" id="MR3risk_degrade3" value="3" disabled="disabled" <c:if test="${requestScope.tplanvo.risk_degrade==3 }">checked='checked'</c:if> /> <label for="MR3risk_degrade3" style="cursor:pointer">C등급 (낮음 위험)</label></span>
		   				</td>
		   			</tr>
		   			<tr>
		   				<th height="20px"  class="bBLine">처리기한</th>
		   				<td colspan="2" class="col-alignCenter">
		   					FROM : ${requestScope.tplanvo.treat_sday}
		   					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		   					TO : ${requestScope.tplanvo.treat_lday}
		   				</td>
		   			</tr>
		   			<tr>
		   				<th height="20px" class="bBLine ">처리상태</th>
		   				<td colspan="2" class="col-alignCenter">
		   					<span><input type="radio" name="MR3treat_state" id="MR3treat_state1" value="1"  disabled="disabled" <c:if test="${requestScope.tplanvo.treat_state==1 }">checked='checked'</c:if> /> <label for="MR3treat_state1" style="cursor:pointer">계획수립</label></span>
							<span><input type="radio" name="MR3treat_state" id="MR3treat_state2" value="2" disabled="disabled" <c:if test="${requestScope.tplanvo.treat_state==2 }">checked='checked'</c:if> /> <label for="MR3treat_state2" style="cursor:pointer">처리 중</label></span>
							<span><input type="radio" name="MR3treat_state" id="MR3treat_state3" value="3" disabled="disabled" <c:if test="${requestScope.tplanvo.treat_state==3 }">checked='checked'</c:if> /> <label for="MR3treat_state3" style="cursor:pointer">종료검토</label></span>
							<span><input type="radio" name="MR3treat_state" id="MR3treat_state4" value="4" disabled="disabled" <c:if test="${requestScope.tplanvo.treat_state==4 }">checked='checked'</c:if> /> <label for="MR3treat_state4" style="cursor:pointer">종료승인</label></span>
		   				</td>
		   			</tr>
		   			<tr>
		   				<th height="20px">최종갱신일자</th>
		   				<td colspan="2" class="col-rowspanMid col-alignCenter">
		   					${requestScope.tplanvo.final_renew_day}
		   				</td>
		   			</tr>
		   			<tr>
	   					<td colspan="4" style="border: 0px #fff;"></td>
	   				</tr>
		   		</tbody>
		   	</table>
		   	<%--위험처리방안선정 끝 --%>
		   	
		   	
		   	<%--위험수용 시작--%>
		   	<table class="mr4Table" style="width: 723px;table-layout: fixed;">
		   		<colgroup>
		   			<col width="80px"/>
	   				<col width="120px"/>
	   				<col width="120px"/>
	   				<col/>
		   		</colgroup>
		   		<tbody>
		   			<tr>
	   					<th rowspan="9" class="bRLine" >잔여위험평가</th>
		   				<th class=" bBLine">위험처리결과 <span class="red">＊</span></th>
		   				<td colspan="2"><textarea class="textfiled" name="rt_result" rows="4" id="rt_result">${requestScope.trevo.rt_result }</textarea></td>
		   			</tr>
		   			<tr>
		   				<th rowspan="7" class="bRLine bBLine">잔여위험<br/>(실측)</th>
		   				<th class="bBLine">자산 취약성 등급</th>
		   				<td class="col-alignCenter">
		   				 <c:choose>
						 	<c:when test="${requestScope.trevo!=null}">
						 		 <c:forEach var="vlList" items="${requestScope.vlList}" varStatus="status">
			   						<span><input type="radio" onclick="javascript: calPlanAll('${requestScope.tdoa[1].doa_score }','${requestScope.tdoa[0].doa_score }')" name="v_score" id="v_score${status.index+1 }" value="<fmt:formatNumber value="${vlList.base_cnt }" pattern="0"/>" <c:if test="${requestScope.trevo.v_score==vlList.base_cnt }">checked='checked'</c:if> /> <label for="v_score${status.index+1 }" style="cursor:pointer">${vlList.base_lev2 }(<fmt:formatNumber value="${vlList.base_cnt }" pattern="0"/>)</label></span>
			   					</c:forEach>
						 	</c:when>
						 	<c:otherwise>
						 		 <c:forEach var="vlList" items="${requestScope.vlList}" varStatus="status">
			   						<span><input type="radio" onclick="javascript: calPlanAll('${requestScope.tdoa[1].doa_score }','${requestScope.tdoa[0].doa_score }')" name="v_score" id="v_score${status.index+1 }" value="<fmt:formatNumber value="${vlList.base_cnt }" pattern="0"/>" <c:if test="${requestScope.tplanvo.v_score==vlList.base_cnt }">checked='checked'</c:if> /> <label for="v_score${status.index+1 }" style="cursor:pointer">${vlList.base_lev2 }(<fmt:formatNumber value="${vlList.base_cnt }" pattern="0"/>)</label></span>
			   					</c:forEach>
						 	</c:otherwise>
						 </c:choose>
		   				</td>
		   			</tr>
		   			<tr>
		   				<th class="bBLine">위험발생가능성</th>
		   				<td class="col-alignCenter">
		   				<c:choose>
						 	<c:when test="${requestScope.trevo!=null}">
						 		 <c:forEach var="rbList" items="${requestScope.rbList}" varStatus="status">
			   						<span><input type="radio" onclick="javascript: calPlanAll('${requestScope.tdoa[1].doa_score }','${requestScope.tdoa[0].doa_score }')"  name="riskb_poss" id="riskb_poss${status.index+1 }" value="<fmt:formatNumber value="${rbList.base_cnt }" pattern="0"/>" <c:if test="${requestScope.trevo.riskb_poss==rbList.base_cnt }">checked='checked'</c:if> /> <label for="riskb_poss${status.index+1 }" style="cursor:pointer">${rbList.base_lev2 }(<fmt:formatNumber value="${rbList.base_cnt }" pattern="0"/>)</label></span>
			   					</c:forEach>
						 	</c:when>
						 	<c:otherwise>
						 		 <c:forEach var="rbList" items="${requestScope.rbList}" varStatus="status">
			   						<span><input type="radio" onclick="javascript: calPlanAll('${requestScope.tdoa[1].doa_score }','${requestScope.tdoa[0].doa_score }')"  name="riskb_poss" id="riskb_poss${status.index+1 }" value="<fmt:formatNumber value="${rbList.base_cnt }" pattern="0"/>" <c:if test="${requestScope.tplanvo.riskb_poss==rbList.base_cnt }">checked='checked'</c:if> /> <label for="riskb_poss${status.index+1 }" style="cursor:pointer">${rbList.base_lev2 }(<fmt:formatNumber value="${rbList.base_cnt }" pattern="0"/>)</label></span>
			   					</c:forEach>
						 	</c:otherwise>
						 </c:choose>
		   				</td>
		   			</tr>
		   			<tr>
		   				<th class="bBLine">위험수준</th>
		   				<td class="col-alignCenter">
		   				<c:choose>
						 	<c:when test="${requestScope.trevo!=null}">
						 		<span id="syscore"><c:if test="${calvo.sy_score==null }">0</c:if>${calvo.sy_score }</span> 
	   							&times; <span id="vscore"><c:if test="${trevo.v_score==null }">0</c:if>${trevo.v_score }</span>
	   							 &times; <span id="riskbposs"> <c:if test="${trevo.riskb_poss==null }">0</c:if>${trevo.riskb_poss }</span>
	   							  = <span id="riskdegree"><c:if test="${trevo.risk_degree==null }">0</c:if>${trevo.risk_degree }</span>
	   							   (max <c:if test="${requestScope.rvatotal==null }">0</c:if>${requestScope.rvatotal }), 
	   							   <c:if test="${requestScope.chRvatotal==null }">0</c:if>${requestScope.chRvatotal }점 척도 환산점수 <span id="exChangeRD"><fmt:formatNumber value="${trevo.risk_degree*1.67 }" pattern="0"/></span> 점
						 	</c:when>
						 	<c:otherwise>
						 		<span id="syscore"><c:if test="${calvo.sy_score==null }">0</c:if>${calvo.sy_score }</span> 
	   							&times; <span id="vscore"><c:if test="${tplanvo.v_score==null }">0</c:if>${tplanvo.v_score }</span>
	   							 &times; <span id="riskbposs"> <c:if test="${tplanvo.riskb_poss==null }">0</c:if>${tplanvo.riskb_poss }</span>
	   							  = <span id="riskdegree"><c:if test="${tplanvo.risk_degree==null }">0</c:if>${tplanvo.risk_degree }</span>
	   							   (max <c:if test="${requestScope.rvatotal==null }">0</c:if>${requestScope.rvatotal }), 
	   							   <c:if test="${requestScope.chRvatotal==null }">0</c:if>${requestScope.chRvatotal }점 척도 환산점수 <span id="exChangeRD"><fmt:formatNumber value="${tplanvo.risk_degree*1.67 }" pattern="0"/></span> 점
						 	</c:otherwise>
						 </c:choose>
		   				</td>
		   			</tr>
		   			<tr>
		   				<th class="bBLine">위험등급</th>
		   				<td class="col-alignCenter">
		   				<c:choose>
						 	<c:when test="${requestScope.trevo!=null}">
						 		<span><input type="radio" name="risk_degrade" id="risk_degrade1" value="1" disabled="disabled" <c:if test="${requestScope.trevo.risk_degrade==1 }">checked='checked'</c:if> /> <label for="risk_degrade1" style="cursor:pointer">A등급 (높은 위험)</label></span>
								<span><input type="radio" name="risk_degrade" id="risk_degrade2" value="2" disabled="disabled" <c:if test="${requestScope.trevo.risk_degrade==2 }">checked='checked'</c:if> /> <label for="risk_degrade2" style="cursor:pointer">B등급 (중간 위험)</label></span>
								<span><input type="radio" name="risk_degrade" id="risk_degrade3" value="3" disabled="disabled" <c:if test="${requestScope.trevo.risk_degrade==3 }">checked='checked'</c:if> /> <label for="risk_degrade3" style="cursor:pointer">C등급 (낮음 위험)</label></span>
						 	</c:when>
						 	<c:otherwise>
						 		<span><input type="radio" name="risk_degrade" id="risk_degrade1" value="1" disabled="disabled" <c:if test="${requestScope.tplanvo.risk_degrade==1 }">checked='checked'</c:if> /> <label for="risk_degrade1" style="cursor:pointer">A등급 (높은 위험)</label></span>
								<span><input type="radio" name="risk_degrade" id="risk_degrade2" value="2" disabled="disabled" <c:if test="${requestScope.tplanvo.risk_degrade==2 }">checked='checked'</c:if> /> <label for="risk_degrade2" style="cursor:pointer">B등급 (중간 위험)</label></span>
								<span><input type="radio" name="risk_degrade" id="risk_degrade3" value="3" disabled="disabled" <c:if test="${requestScope.tplanvo.risk_degrade==3 }">checked='checked'</c:if> /> <label for="risk_degrade3" style="cursor:pointer">C등급 (낮음 위험)</label></span>
						 	</c:otherwise>
						 </c:choose>
		   				</td>
		   			</tr>
		   			<tr>
		   				<th class="bBLine">잔여위험 <span class="red">＊</span></th>
		   				<td>
		   					<input type="text" name="re_risk" id="re_risk"  value="${requestScope.trevo.re_risk }" maxlength="50"  class="width98"></input>
		   				</td>
		   			</tr>
		   			<tr>
		   				<th class="bBLine">위험수용여부 <span class="red">＊</span></th>
		   				<td class="col-alignCenter">
		   					<span><input type="radio" name="doa_yn" id="doa_yn1" value="1" onclick="checkDoaYn('')" <c:if test="${requestScope.trevo.doa_yn==1 }">checked='checked'</c:if> /> <label for="doa_yn1" style="cursor:pointer">수용</label></span>
							<span><input type="radio" name="doa_yn" id="doa_yn2" value="2" onclick="checkDoaYn('')" <c:if test="${requestScope.trevo.doa_yn==2 }">checked='checked'</c:if> /> <label for="doa_yn2" style="cursor:pointer">재 계획</label></span>
							<span><input type="radio" name="doa_yn" id="doa_yn3" value="3" onclick="checkDoaYn('')" <c:if test="${requestScope.trevo.doa_yn==3 }">checked='checked'</c:if> /> <label for="doa_yn3" style="cursor:pointer">재 평가</label></span>
							<span><input type="radio" name="doa_yn" id="doa_yn4" value="4" onclick="checkDoaYn('')" <c:if test="${requestScope.trevo.doa_yn==4 }">checked='checked'</c:if> /> <label for="doa_yn4" style="cursor:pointer">재 이행</label></span>
		   				</td>
		   			</tr>
		   			<tr>
		   				<th class="bBLineB">위험수용사유</th>
		   				<td><textarea class="textfiled" name="doa_text" rows="4" id="doa_text" readonly="readonly">${requestScope.trevo.doa_text }</textarea></td>
		   			</tr>
		   			<tr>
		   				<th>최종갱신일자 <span class="red">＊</span></th>
		   				<td colspan="2" class="col-rowspanMid col-alignCenter">
		   					<input type='text' name='final_renew_day' id='final_renew_day'  value="<c:choose><c:when test="${requestScope.trevo!=null}">${requestScope.trevo.final_renew_day}</c:when><c:otherwise>${requestScope.nowDate }</c:otherwise></c:choose>" maxlength='10' size='10' style='IME-MODE: disabled;' onkeydown='evKeyAndDot(event); '  onkeyup='inputCheckSpecial(this); setComma(this,event);' onblur="isDateMD(this)" ></input>
		   					<img id="final_renew_dayCal_calIcon" src="images/calendar.gif" style="vertical-align: text-bottom; cursor: pointer;"></img>
		   				</td>
		   			</tr>
		   		</tbody>
		   	</table>
		   	<%--위험수용 끝--%>
		   	
   		</form>
	</div>
</div>
</body>
</html>

